﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace OneEightySquaredDbScripter
{
    public partial class frmGroup : Form
    {
        private string _groupName = "";

        public string GroupName
        {
            get { return _groupName; }
        }

        public frmGroup(string groupName)
        {
            InitializeComponent();

            if (null != groupName)
            {
                _groupName = groupName;
            }
        }

        private void frmGroup_Load(object sender, EventArgs e)
        {
            CenterToParent();
            txtGroupName.Text = _groupName;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            // TODO: validate for valid pathname
            _groupName = txtGroupName.Text.Trim();
            DialogResult = DialogResult.OK;
        }
    }
}
